#!/bin/bash

# This is RHCOS only

# kola: { "exclusive": false }
set -xeuo pipefail

fatal() {
    echo "$@" >&2
    exit 1
}

# Check that rhaos packages do not match the OpenShift version
if [[ $(rpm -qa | grep rhaos | grep -v $OPENSHIFT_VERSION) ]]; then
    fatal "Error: rhaos packages do not match OpenShift version"
fi
